/***********************************************
 This file is part of redia-bapps-main-ios.
 
 Copyright (c) 2015 Redia A/S
 
 Redia-bapps-main-ios is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 redia-bapps-main-ios is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with redia-bapps-main-ios.  If not, see <http://www.gnu.org/licenses/>.
 
 *********************************************** */

//
//  RediaSearchableTableViewController.h
//  Table with search field
//
//  Created by Mads Darø Kristensen on 9/25/13.
//  Copyright (c) 2013 Redia a/s. All rights reserved.
//

/**
 This view controller takes an array of strings, sorts them, and presents them in a searchable 
 list view. When the user selects something in the list a signal is sent with the string
 that has been selected.
 */

#import <UIKit/UIKit.h>
#import "BASearchableTableViewControllerDelegate.h"

@interface BASearchableTableViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>

@property (strong, nonatomic) NSArray *contents;
@property (weak, nonatomic) id<BASearchableTableViewControllerDelegate> delegate;

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UITextField *searchTextField;

- (void)setPlaceHolderText:(NSString*)placeHolderText;
- (void)setFont:(UIFont*)font;
- (void)setHighlightFont:(UIFont*)font;
- (void)removeSelection;

- (void)resignFirstResponder;
- (void)setTextFieldEnabled:(BOOL)isEnabled;

@end
